package cn.steel.domain.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class SupplierInfoDto {
    private Long id;
    private Long userId;

    @NotBlank(message = "公司名称不能为空")
    @Size(max = 100, message = "公司名称长度不能超过100个字符")
    private String company;

    @Size(max = 20, message = "手机号长度不能超过20个字符")
    private String phone;

    @Size(max = 200, message = "地址长度不能超过200个字符")
    private String address;

    @Size(max = 500, message = "店铺简介长度不能超过500个字符")
    private String description;
}